<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
<style type="text/css">
<!--
.Estilo1 {font-family: Verdana, Arial, Helvetica, sans-serif}
.Estilo5 {font-size: 12px; font-family: Verdana, Arial, Helvetica, sans-serif;}
.Estilo7 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; font-weight: normal; }
-->
</style>
</head>
<body>
<table width="600" height="601" border="0">
<tr>
    <td height="56" colspan="2"><img src="avsa.png" width="900" height="115" /></td>
  </tr>
  
<tr>
<td width="173" valign="top"><jsp:include page="Menu.jsp" /></td>
<td valign="top">
<table width="700">
  <tr>
    <td><span class="Estilo1">Gestionar Plan de Ense&ntilde;anza</span></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td><table width="100%" style="border-width:1px; border-radius: 5px; border-style: solid; border-color: #AAA;" >
      <s:form action="CapacitacionAction">
        <tr>
          <td class="Estilo1 Estilo5">Buscar capacitaci&oacute;n:</td>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td width="381"><s:hidden name="source" value="gplan" />
              <table width="100%" border="0">
                <tr>
                  <td width="24%"><span class="Estilo7">Codigo:</span></td>
                  <td width="46%"><s:textfield name="txtCapacitacion" size="28" maxlength="28" /></td>
                  <td width="30%"><s:submit  value="Buscar" action="CapacitacionAction" method="buscar"/></td>
                </tr>
            </table></td>
          <td width="423" class="Estilo5 Estilo1">&nbsp;</td>
        </tr>
      </s:form>
    </table></td>
  </tr>
  <tr>
    <td valign="top"><table width="100%" style="border-width:1px; border-radius: 5px; border-style: solid; border-color: #AAA;">
      <tr>
        <td width="36%" valign="top"><table width="400" style="border-width:1px; border-radius: 5px; border-style: solid; border-color: #AAA;">
            <tr>
              <td width="41%" class="Estilo7">Nro de pedido:</td>
              <td width="59%" class="Estilo5"><s:property value="c.pedido.id_pedido"/></td>
            </tr>
            <tr>
              <td class="Estilo7">Fecha de inicio:</td>
              <td  class="Estilo5"><s:property value="c.fechaInicio"/></td>
            </tr>
            <tr>
              <td class="Estilo7">Fecha fin:</td>
              <td  class="Estilo5"><s:property value="c.fechaFin" /></td>
            </tr>
            <tr>
              <td class="Estilo7">Nro. capacitados: </td>
              <td  class="Estilo5"><s:property value="c.numCapacitados" /></td>
            </tr>
        </table></td>
        </tr>
        <tr><td>&nbsp;</td></tr>
        <tr>
        <td width="100%" valign="top"><table width="100%" border="0" bordercolor="black" class="Estilo7" style="border-width:1px; border-radius: 5px; border-style: solid; border-color: #AAA;">
            <tr valign="top">
              <td width="50%" ><strong>Tema</strong></td>
              <td width="20%"><strong>Dia</strong></td>
              <td width="20%"><strong>Hora Inicio</strong></td>
              <td width="10%"><strong>Duracion</strong></td>
            </tr>
            <s:iterator value="c.temas" var="t">
              <tr>
                <td><s:property value="descripcion" /></td>
               <s:iterator value="horarios" status="s">
               <s:if test="#s.count==1"> 
	                <td>
						<s:property value="dia" />
	                </td>
	                <td><s:property value="horaInicio" /></td>
	                <td><s:property value="duracion" /> horas</td>
	            </s:if> 
	            <s:if test="#s.count!=1">
	            <tr>
	            	<td>&nbsp;</td> 
	                <td>
						<s:property value="dia" />
	                </td>
	                <td><s:property value="horaInicio" /></td>
	                <td><s:property value="duracion" /> horas</td>
	            </tr>
	            </s:if>       
                </s:iterator>
              </tr>
              <tr>
              <td>&nbsp;</td>
              </tr>
            </s:iterator>
        </table></td></tr>
      <tr align="right">
        <td><s:form action="CapacitacionAction">
        <s:hidden name="idcap" value="%{c.id_capacitacion}"></s:hidden>
        <s:submit  value="Aprobar" action="CapacitacionAction" method="aprobar"/>
        </s:form>
            </td>
        <td>&nbsp;</td>
      </tr>
    </table></td>
  </tr>
</table>
</td>
</tr>
  <tr>
    <td colspan="2"><s:property value="mensaje"/></td>
  </tr>

</table>
</body>
</html>